package com.healthcloud.dao;

import com.healthcloud.entity.HlHospitalEntity;
import com.healthcloud.entity.Hospital;
import com.healthcloud.entity.PpPatientBaseEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 医院信息表
 * 
 * @author yucl
 * @email yucailong1111@126.com
 * @date 2017-08-16 15:45:23
 */
public interface HlHospitalDao extends BaseDao<HlHospitalEntity> {

    int logicalDelete(Long id);

    HlHospitalEntity queryByHospName(String hospName);

    List<HlHospitalEntity> getHospitalListByAreaCode(@Param("areaCode") String areaCode
            , @Param("hosType") Integer hosType, @Param("ids") String ids);

    List<Long> getChildeIds(@Param("entity") HlHospitalEntity entity);

    List<HlHospitalEntity> getHospitalsByUserId(@Param("userId") Long userId);

    void bindWHospital(@Param("id") Long id, @Param("hospitalCode") String hospitalCode);

    List<HlHospitalEntity> searchAll();

    List<HlHospitalEntity> getChildesOne(@Param("organiId")Long organiId);
}
